Class DirectoryScanner

Summary

Fully Qualified Name: Zend\Code\Scanner\DirectoryScanner
Implements: ScannerInterface

Description

Methods

Name Description Defined By
__construct() DirectoryScanner
__toString() __ToString DirectoryScanner
addDirectory() DirectoryScanner
addDirectoryScanner() DirectoryScanner
addFileScanner() DirectoryScanner
export() Export DirectoryScanner
getClass() DirectoryScanner
getClassNames() DirectoryScanner
getClasses() DirectoryScanner
getFiles() DirectoryScanner
getNamespaces() DirectoryScanner
hasClass() DirectoryScanner

Method Details

__construct()

Parameter Name Type Description
$directory null|string|array

Returns:

__toString()

__ToString

Returns:

addDirectory()

Parameter Name Type Description
$directory \DirectoryScanner|string

Returns: void

addDirectoryScanner()

Parameter Name Type Description
$directoryScanner \DirectoryScanner

Returns: void

addFileScanner()

Parameter Name Type Description
$fileScanner \FileScanner

Returns: void

export()

Export

Returns:

getClass()

Parameter Name Type Description
$class string
$returnDerivedScannerClass bool

Returns: \ClassScanner|\DerivedClassScanner

getClassNames()

Returns: array

getClasses()

Parameter Name Type Description
$returnDerivedScannerClass bool

Returns: array

getFiles()

Parameter Name Type Description
$returnFileScanners bool

Returns: array

getNamespaces()

Returns:

hasClass()

Parameter Name Type Description
$class string

Returns: bool

Top